package service.impl;

import entity.CommonPairResponse;
import entity.FormSubmitRequest;
import service.FormSubmitHandler;

import java.io.Serializable;

//@Component
public class FormPreviewSubmitHandler implements FormSubmitHandler{



    @Override
    public String getSubmitType() { return "preview"; }

    @Override
    public CommonPairResponse handleSubmit(FormSubmitRequest request) {
        System.out.println("预览模式提交：userId="+request.getUserId()+", formInput="+request.getFormInput());

        return CommonPairResponse.success("预览模式提交数据成功！", null);
    }
}
